ApplyFMSGridPanel = function(){
	var store = new Ext.data.JsonStore(
		{
			url:__ctxPath+'/back/taskinfo/gettaskinfoforlist.html',
			totalProperty:'totalCount',
			root:'data',
			autoLoad:true,
			fields:['startdate','personcount','leader',
			'applypersondocno','countrynames','id']
		}
	);
	var grid = new Ext.grid.GridPanel(
		{
			store:store,
			width:500,
			height:400,
			columns:[
				{
					header:"出访日期",dataIndex:"startdate",width:120
				},{
					header:"用户数量",dataIndex:"personcount",width:120
				},{
					header:"团长",dataIndex:"leader",width:150
				},{
					header:"出访人数",dataIndex:"applypersondocno",width:140
				},{
					header:"出访国家",dataIndex:"countrynames",width:230
				},{
					header:"ID编号",dataIndex:"id",width:130
				}
			]
		}
	);
	var bbar = [
		new Ext.PagingToolbar(
			{
				 store: store,       // grid and PagingToolbar using same store
        		 displayInfo: true,
        		 pageSize: 20,
        		 plugins: new Ext.ux.ProgressBarPager({progBarWidth:400})
			}
		)
	];
	var config = {
		title:'数据列表Grid',
		layout:"fit",
		width:500,
		height:400,
		bbar:bbar,
		items:[grid]
	}
	ApplyFMSGridPanel.superclass.constructor.call(this,config);
}
Ext.extend(ApplyFMSGridPanel,Ext.Panel);


/*ApplyFormPanel = function(){
	//items 团组类型
	var tasktypeinfo1 = {
        columnWidth:.3,
        bodyStyle: 'padding-right:5px;',
        layout: 'form',
        items: [
        	{
        		xtype:'fieldset',
	            title: '团组类型',
	            collapsible: true,
	            autoHeight:true,
	            defaults: {width: 210},
	            defaultType: 'textfield',
	            items :[{
	                    fieldLabel: '团组类别',
	                    name: 'home',
	                    value: '(888) 555-1212'
	                },{
	                    fieldLabel: '出访类型',
	                    name: 'business'
	                }
	            ]
        	}
        ]
    };
    window.selectCountry = function(){
    	alert('---66---');
    };
	//items 费用类型
    var tasktypeinfo2 = {
        columnWidth:.3,
        layout: 'form',
        items: [
        	{
        		xtype:'fieldset',
	            title: '团组类别',
	            collapsible: true,
	            autoHeight:true,
	            defaults: {width: 210},
	            defaultType: 'textfield',
	            items :[
	            	{
	                	xtype:'button',
	                	width:30,
	                	height:40,
	                	text:'选择国家',
	                	handler:function(){
	                		alert();
	                	}
	                },{
	                    fieldLabel: '出访国家或地区',
	                    name: 'home',
	                    value: '双跨'
	                }
	            ]
        	}
        ]
    };
	//items 出访国家
    var tasktypeinfo3 = {
        columnWidth:.3,
        layout: 'form',
        bodyStyle: 'padding-left:5px;',
        items: [
        	{
        		xtype:'fieldset',
	            title: '出访类型',
	            collapsible: true,
	            autoHeight:true,
	            defaults: {width: 210},
	            defaultType: 'textfield',
	            items :[{
	                    fieldLabel: '类型',
	                    name: 'home',
	                    value: '(888) 555-1212'
	                }
	            ]
        	}
        ]
    };
	//items 出访类型
    var tasktypeinfo4 = {
        columnWidth:.3,
        layout: 'form',
        bodyStyle: 'padding-right:5px;',
        items: [
        	{
        		xtype:'fieldset',
	            title: '付款类型',
	            collapsible: true,
	            autoHeight:true,
	            defaults: {width: 210},
	            defaultType: 'textfield',
	            items :[{
	                    fieldLabel: '付款类型',
	                    name: 'home',
	                    value: '(888) 555-1212'
	                }
	            ]
        	}
        ]
    };
	//items 付款类型
    var tasktypeinfo5 = {
        columnWidth:.3,
        layout: 'form',
        items: [
        	{
        		xtype:'fieldset',
	            title: '附件信息',
	            collapsible: true,
	            autoHeight:true,
	            defaults: {width: 210},
	            defaultType: 'textfield',
	            items :[{
	                    fieldLabel: 'Home',
	                    name: 'home',
	                    value: '(888) 555-1212'
	                },{
	                    fieldLabel: 'Business',
	                    name: 'business'
	                },{
	                    fieldLabel: 'Mobile',
	                    name: 'mobile'
	                },{
	                    fieldLabel: 'Fax',
	                    name: 'fax'
	                }
	            ]
        	}
        ]
    };
	//items 附件类型
    var tasktypeinfo6 = {
        columnWidth:.3,
        layout: 'form',
        bodyStyle: 'padding-left:5px;',
        items: [
        	{
        		xtype:'fieldset',
	            title: '备注信息',
	            collapsible: true,
	            autoHeight:true,
	            defaults: {width: 210},
	            defaultType: 'textfield',
	            items :[{
	                    fieldLabel: '备注信息',
	                    name: 'home',
	                    value: '(888) 555-1212'
	                }
	            ]
        	}
        ]
    };
	var form = new Ext.form.FormPanel(
		{
			bodyStyle: 'padding-left:5px;padding-top:5px;',
			frame:true,
			autoScroll : true,
			autoWidth : true,
			items:[
				{
					layout:'column',
					items:[tasktypeinfo1,tasktypeinfo2,tasktypeinfo3]
				},{
					layout:'column',
					items:[tasktypeinfo4,tasktypeinfo5,tasktypeinfo6]
				}
			],
			buttons:[
				{
					text:"确定",
					handler:function(){
						this.ownerCt.removeAll(true);
						var b=new ApplyFMSGridPanel();
						Ext.getCmp('ApplyFMSPanel').add(b);
						Ext.getCmp('ApplyFMSPanel').doLayout();
					},
					scope:this
				},
				{
					text:"取消",
					handler:function(){}
				}
			]
		}
	);
	var config = {
		title:'出国申报',
		iconCls:'zoom',
		layout:"fit",
		width:300,
		height:400,
		items:[form]
	}
	ApplyFormPanel.superclass.constructor.call(this,config);
}
Ext.extend(ApplyFormPanel,Ext.Panel);*/
